﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace SocialNetwork.Infrastructure
{
    public static class Helpers
    {
        public static MvcHtmlString Image(this HtmlHelper helper, string src)
        {
            var builder = new TagBuilder("img");
            builder.MergeAttribute("src",src);
            return MvcHtmlString.Create( builder.ToString(TagRenderMode.SelfClosing));
        }
    }
}